package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BizDidianMapper;
import com.ruoyi.system.domain.BizDidian;
import com.ruoyi.system.service.IBizDidianService;
import com.ruoyi.common.core.text.Convert;

/**
 * 地点信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-29
 */
@Service
public class BizDidianServiceImpl implements IBizDidianService 
{
    @Autowired
    private BizDidianMapper bizDidianMapper;

    /**
     * 查询地点信息
     * 
     * @param sn 地点信息主键
     * @return 地点信息
     */
    @Override
    public BizDidian selectBizDidianBySn(Long sn)
    {
        return bizDidianMapper.selectBizDidianBySn(sn);
    }

    /**
     * 查询地点信息列表
     * 
     * @param bizDidian 地点信息
     * @return 地点信息
     */
    @Override
    public List<BizDidian> selectBizDidianList(BizDidian bizDidian)
    {
        return bizDidianMapper.selectBizDidianList(bizDidian);
    }

    /**
     * 新增地点信息
     * 
     * @param bizDidian 地点信息
     * @return 结果
     */
    @Override
    public int insertBizDidian(BizDidian bizDidian)
    {
        return bizDidianMapper.insertBizDidian(bizDidian);
    }

    /**
     * 修改地点信息
     * 
     * @param bizDidian 地点信息
     * @return 结果
     */
    @Override
    public int updateBizDidian(BizDidian bizDidian)
    {
        return bizDidianMapper.updateBizDidian(bizDidian);
    }

    /**
     * 批量删除地点信息
     * 
     * @param sns 需要删除的地点信息主键
     * @return 结果
     */
    @Override
    public int deleteBizDidianBySns(String sns)
    {
        return bizDidianMapper.deleteBizDidianBySns(Convert.toStrArray(sns));
    }

    /**
     * 删除地点信息信息
     * 
     * @param sn 地点信息主键
     * @return 结果
     */
    @Override
    public int deleteBizDidianBySn(Long sn)
    {
        return bizDidianMapper.deleteBizDidianBySn(sn);
    }
}
